package jus.aoo.tri.triable;

import java.util.Comparator;
import java.util.Random;

import jus.aoo.tri.Triable;

public class StringTriable implements Triable<String> {

	@Override
	public String newInstance() {
		Random r = new Random();
		return Integer.toString(r.nextInt(10000000));
		/* Ancien rendom :
		return Integer.toString((int)(Math.random()*10000000));
		*/
	}

	@Override
	public Comparator<String> comparator() {
		return String.CASE_INSENSITIVE_ORDER;
	}

	@Override
	public String toString(String o) {
		return o;
	}

	@Override
	public long count() {
		return 0;
	}

	@Override
	public void resetCount() {
		// TODO Auto-generated method stub
		
	}


}
